#ifndef __AT_ESP32_H__
#define __AT_ESP32_H__

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>

typedef enum _AT_CMD
{
    AT = 0,
    AT_GMR,
    AT_RST,
    AT_RESTORE,
    AT_END
}AT_CMD;

typedef struct  _at_esp32_cmd
{
   AT_CMD AT_CMD;
   char at_cmd[32];
}at_esp32_cmd;

typedef struct  _link_node {

    at_esp32_cmd data;
    struct  _link_node * next;
}link_node;

extern  link_node *head; 
extern at_esp32_cmd cmd_init[];

link_node *cmd_initLink(at_esp32_cmd data[], uint32_t length);
uint8_t at_loop(link_node *p);

#endif /* __AT_ESP32_H__ */

